home *** CD-ROM | disk | FTP | other *** search
- Path: gsusgi1.gsu.edu!not-for-mail
- From: matmrlx@gsusgi1.gsu.edu (Michael R. Lauer)
- Newsgroups: comp.lang.c
- Subject: ports
- Date: 4 Mar 1996 08:45:52 -0500
- Organization: Georgia State University
- Message-ID: <4hes6g$2fp@gsusgi1.gsu.edu>
- NNTP-Posting-Host: gsusgi1.gsu.edu
- Summary: controlling port setup?
- Keywords: unix, c, ports
- X-Newsreader: NN version 6.5.0 #3 (NOV)
-
- I have a program running on SCO UNIX and AIX that dials the modem and sends
- a bunch of messages. It works fine for days and hundreds of messages, then
- `for no apparent reason' the port goes `sour'. By that I mean the simple
- fd = open(acu, O_RDWR | O_NONBLOCK) fails with errno == 9. The cure is
- to kill my program, enable(penable) then disable(pdisable) the port, chmod
- 6777 the port, and start the program back up again and it runs fine for
- days or weeks before it happens again. I've got to be able to recover from
- this, and it seems simple enough, but all I can think of doing is kludgy
- systems calls to replicate the process outlined above.
-
- Any ideas? If you flame me about this not being a specific C question,
- please include in your invective the specific newsgroup you think I should
- look at...
-